Component({
  properties: {
    icon: {
      type: String,
      value: 'https://cdn.cuuo.cn/images/notice.png'
    },
    speed: {
      type: Number,
      value: 1
    },
    notices: {
      type: null,
      value: []
    }
  },
  data: {
    current: 0
  },
  methods: {
    noticeChange(e) {
      this.setData({
        current: e.detail.current
      })
    },
    click(e) {
      this.triggerEvent('Notice', {
        current: this.data.current
      });
    }
  }
})
